/*
 * Project: Set Sample
 * Copyright (C) 2013 alf.labs gmail com,
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.alflabs.setsample.core;

import android.content.Context;
import android.content.SharedPreferences;

public class SetPrefsValues extends BasePrefsValues {

    public static final String SET__SHOW_TIME_COUNTER = "set__show_time_counter";
    public static final String SET__STATS_TIME_PER_SOL = "set__stats_time_per_sol";

    public SetPrefsValues(Context context) {
        super(context);
    }

    public SetPrefsValues(SharedPreferences prefs) {
        super(prefs);
    }

    public boolean isShowTimeCounter() {
        return mPrefs.getBoolean(SET__SHOW_TIME_COUNTER, false);
    }

    public boolean isStatsTimePerSol() {
        return mPrefs.getBoolean(SET__STATS_TIME_PER_SOL, true);
    }

    public void setStatsTimePerSol(boolean value) {
        mPrefs.edit().putBoolean(SET__STATS_TIME_PER_SOL, value).apply();
    }
}
